<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<script type="text/javascript" src ="js/jquery-1.10.2.min.js"></script>
<title>登录验证</title>
<script type="text/javascript">
	var xmlHttp=null;
	function checkLoginName(obj){
		var loginName=obj.value;
		console.log(loginName);
		if(loginName.lenght==0){
			
			return ;
		}
		$("#msg").load("getAjax?loginName="+loginName);
	}
</script>
</head>
<body>
	<form>
		用户名:<input type="text" name="loginName" onblur="checkLoginName(this)">
		<span id="msg"></span><br>
		密码:<input type="password" name="pwd">
		确认密码:<input type="password" name="CheckPwd">
		<input type="submit" value="提交">
	</form>
</body>
</html>